﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for CarDriverDemeritPoints
/// </summary>
/// 
namespace CE.CarInsurance
{
    public class CarDriverDemeritPoints
    {
        private Int64 _cardriverdemeritid;
        private Int64 _cecarid;
        private Int64 _cecarmoredetailid;
        private Int64 _providercompanyid;
        private string _drivername;
        private string _totaldemeritpoints;
        private DateTime _demeritdate;
        private string _typeofoffence;
        private Int64 _refceuserid;
        private Int64 _vieweddetailid;
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public CarDriverDemeritPoints()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 CarDriverDemeritId
        {
            get { return _cardriverdemeritid; }
            set { _cardriverdemeritid = value; }
        }

        public Int64 CECarID
        {
            get { return _cecarid; }
            set { _cecarid = value; }
        }

        public Int64 CECarMoreDetailId
        {
            get { return _cecarmoredetailid; }
            set { _cecarmoredetailid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public string DriverName
        {
            get { return _drivername; }
            set { _drivername = value; }
        }

        public string TotalDemeritPoints
        {
            get { return _totaldemeritpoints; }
            set { _totaldemeritpoints = value; }
        }

        public DateTime DemeritDate
        {
            get { return _demeritdate; }
            set { _demeritdate = value; }
        }

        public string TypeofOffence
        {
            get { return _typeofoffence; }
            set { _typeofoffence = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _cardriverdemeritid = 0;
            _cecarid = 0;
            _cecarmoredetailid = 0;
            _providercompanyid = 0;
            _drivername = "";
            _totaldemeritpoints = "";
            _demeritdate = new DateTime();
            _demeritdate = CE.Global.General.GetUTCDateTime();
            _typeofoffence = "";
            _refceuserid = 0;
            _vieweddetailid = 0;
            _status = false;
            _createddate= new DateTime();
            _modifieddate = new DateTime();
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();
        }
    }
}